package cn.aws360.boot.system.biz.domain;

import cn.aws360.boot.data.api.pojo.domain.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_dict_item")
@EqualsAndHashCode(callSuper = true)
public class SysDictItem extends BaseDO {

    /**
     * 子项 id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典 id
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 子项名称
     */
    @TableField("label")
    private String label;

    /**
     * 子项数值
     */
    @TableField("value")
    private Integer value;

    /**
     * 子项排序
     */
    @TableField("sort")
    private Integer sort;

}
